function [ id ] = end( this, k, n )
% DataMatrix::end(dataMatrix, k, n)
% Override the @end function

switch k
    case {1, 'row', 'r'}
        id = this.nRow;
    case {2, 'col', 'c'}
        id = this.nCol;
    otherwise
        id = 1;
end

end
